﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class MainMenuButtons : MonoBehaviour
{
    public GameObject panel;
    public static int levelnow;
    public void StartGame()
    {
        Time.timeScale = 1;
        levelnow = 1;
        panel.SetActive(true);
    }
    public void Exit()
    {
        Application.Quit();
    }
    public void Restart()
    {
        Time.timeScale = 1;
        SceneManager.LoadScene(levelnow);
    }
    public void NextLevel()
    {
        levelnow++;
        Time.timeScale = 1;
        SceneManager.LoadScene(levelnow);
    }
    public void BacktoMenu()
    {
        SceneManager.LoadScene(0);
    }
    public void Producers()
    {
        SceneManager.LoadScene(5);
    }
}
